import { Mode } from '@/core/interfaces/common'
// api设置接口
export const baixingAccountByGet = () => ({
  url: '/api/v1/baixing/account/list',
  method: 'get'
})

export const baixingAccountByUpdate = (mode: Mode) => ({
  url: `/api/v1/baixing/account/${mode === Mode.create ? 'add' : 'update'}`,
  method: 'post'
})

export const baixingAccountByRemove = () => ({
  url: '/api/v1/baixing/account/del',
  method: 'post'
})

export const residueNumberde = () => ({
  url: '/api/v1/residueNumber',
  method: 'get'
})
// 修改额度查询接口
export const getOrderCombinedWordNumSum = () => ({
  url: '/api/v1/getOrderCombinedWordNumSum',
  method: 'get'
})
// 修改额度修改接口
export const updateOrderCombinedWordNumSum = () => ({
  url: '/api/v1/updateOrderCombinedWordNumSum',
  method: 'post'
})

// 续费新接口 /api/v1/priceAsk/getRenewPrice
export const getRenewPrice = () => ({
  url: '/api/v1/priceAsk/getRenewPrice',
  method: 'post'
})

// 续费新接口特价等几个版本 /api/v1/priceAsk/getCbRenewPrice
export const getCbRenewPrice = () => ({
  url: '/api/v1/priceAsk/getCbRenewPrice',
  method: 'post'
})

export const getJiagouPirceius = () => ({
  url: '/api/v1/priceAsk/getJiagouPirce',
  method: 'get'
})

export const getRenewDetail = () => ({
  url: '/api/v1/priceAsk/getRenewDetail',
  method: 'get'
})

export const addJiaGouPriceAsk = () => ({
  url: '/api/v1/priceAsk/addJiaGouPriceAsk',
  method: 'post'
})

export const addImgOrderd = () => ({
  url: '/api/v1/priceAsk/addImgOrder',
  method: 'post'
})

export const openOneImgQuota = () => ({
  url: '/api/v1/openOneImgQuota',
  method: 'post'
})
// 关键词接口
export const tallCostpage = () => ({
  url: '/api/v1/tallCost/page',
  method: 'get'
})
export const tallCostadd = () => ({
  url: '/api/v1/tallCost/add',
  method: 'post'
})

export const tallCostdel = () => ({
  url: '/api/v1/tallCost/del',
  method: 'post'
})
// 折扣部分的新增或修改接口
export const saveOrUpdateRenewConf = () => ({
  url: '/api/v1/priceAsk/saveOrUpdateRenewConf',
  method: 'post'
})

// 折扣部分的删除接口
export const deleteRenewConf = () => ({
  url: '/api/v1/priceAsk/deleteRenewConf',
  method: 'post'
})
export const tallCostupdate = () => ({
  url: '/api/v1/tallCost/update',
  method: 'post'
})
export const getAllUnitByAdId = () => ({
  url: '/api/v1/getAllUnitByAdId',
  method: 'get'
})

// 更改账号确定1
export const transferAccountNumber = () => ({
  url: '/api/v1/ad/campaign/transferAccountNumber',
  method: 'post'
})
//
// 更改账号确定2
export const transferStart = () => ({
  url: '/api/v1/ad/campaign/transferStart',
  method: 'post'
})
//获取新版店铺token
export const getLoginToken = () => ({
  url: '/api/v1/getLoginTokenByCustomerId',
  method: 'get'
})
//获取特批文案
export const getSpecialApproveText = () => ({
  url: '/api/v1/priceAsk/getSpecialApproveText',
  method: 'get'
})
// /api/v1/order/upFile 上传excel
export const orderupFile = () => ({
  url: '/api/v1/order/upFile',
  method: 'post'
})
// /api/v1/order/setExcelUrl
export const ordersetExcelUr = () => ({
  url: '/api/v1/order/setExcelUrl',
  method: 'post'
})
// /api/v1/order/setUserPwd
export const setUserPwd = () => ({
  url: '/api/v1/order/setUserPwd',
  method: 'post'
})
